fetch("http://chst.vip:1234/api/getinlanddiscount")
        .then(body => body.json())
         .then(res => {
             console.log(res.result);
             let html=''
             res.result.forEach(item=>{
                 console.log(item.productId);
                 html+=`
                 <li productid=${item.productId}>
                <a href="../pages/moneyproduct.html?productid=${item.productId}">
                <div class="img">${item.productImg}</div>
                <div class="title">${item.productName}</div>
                <p class="price">${item.productPrice}</p>
                <p class="from">${item.productFrom} | ${item.productTime}</p> 
            </a>
        </li>
                 
                 
                 `
             })
           document.querySelector('.list').innerHTML=html  
         })